from project_team.models import ProjectTeam
from employee.models import Employee

def create_team(team_id, manager_id):
	team = ProjectTeam(team_id = team_id, manager= manager_id)
	team.save()

def get_teams():
	return ProjectTeam.objects.all()

def get_team_by_id(team_id):
	return ProjectTeam.objects.get(id=team_id)

def update_team_by_id(team_id, **fields):
	return Employee.objects.filter(id=team_id).update(**fields)

def search_team():
	print "Requires Implementation"
	# ProjectTeam.objects.filter(...)
	pass

def generate_team():
	print "Requires Implementation"
	pass